package com.renshine.base.mapper.mysql;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Component;

import com.renshine.base.bean.Table;


@Component("mysqlTableMapper")
public class TableMapper implements RowMapper<Table>{
	
	@Override
	public Table mapRow(ResultSet rs, int rowNum) throws SQLException {
		return new Table(rs.getString("name"), rs.getString("comment"));
	}
	
}
